function main() {
    setTimeout(res => {
        document.querySelector("#map_base_by5pj_csshandler_generate > div > div.item-content > div").style.height = 'calc(-80px + 83vh)';
        const self = this;
        getLawStallInfoList().then(res => {
            console.log('res--->', res)
            let list = res.result.map(row => {
                return {
                    id: row.stall_id,
                    x: row.longitude,
                    y: row.latitude,
                }
            });
            // console.log('list--->', list)
            // 获取地图组件的model
            let mapData = self.$$model('map_base_by5pj');
            // 设置点图层数据
            let layerId = 'graphic_31ujfo'; // 点图层标识
            self.$$('map_base_by5pj').layerData[layerId] = list;
            // 设置中心点
            if (list.length) {
                mapData.props.mapConfig.coordX = list[0].x;
                mapData.props.mapConfig.coordY = list[0].y;
            }
        })
    }, 1000)

}

function getLawStallInfoList() {
    return new Promise((resolve, reject) => {
        let params = [{
            name: "regionCode",
            valueContent: '42'
        }];
        api.DATA_SOURCE_EXECUTE("ds_mod:7e09b593-3171-4122-8e68-2745a2f35c3f", "ddcat", params, [], "").then(res => {
            console.log(res);
            resolve(res);
        });
    });

}
